package org.springblade.application.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.springblade.application.command.TargetAddressPageCommand;
import org.springblade.applicationapi.entity.ApplicationManagementEntity;
import org.springblade.applicationapi.entity.TargetAddressEntity;
import org.springblade.applicationapi.vo.TargetAddressVO;

import java.util.List;
/**
 * @author wzy
 */
@Mapper
public interface TargetAddressMapper extends BaseMapper<TargetAddressEntity> {

	/**
	 * 分页
	 * @param page
	 * @param pageCommand
	 * @return
	 */
	List<TargetAddressVO> addressPage(IPage<TargetAddressVO> page, TargetAddressPageCommand pageCommand);

	/**
	 * 无限制分页：应用管理页面
	 * @param page
	 * @param pageCommand
	 * @return
	 */
	List<TargetAddressVO> unlimitedPage(IPage<TargetAddressVO> page, TargetAddressPageCommand pageCommand);

	/**
	 * 输入dept_id 模糊查询出应用管理对象
	 * @param id 部门id
	 * @return 应用管理类
	 */
    List<ApplicationManagementEntity> getEntity(Long id);
}
